import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LoginGuard } from './guards/login.guard';
const routes: Routes = [
  { path: 'cesum', loadChildren: './layout/layout.module#LayoutModule'},
  {
    path: '**',
    redirectTo: 'cesum',
    pathMatch: 'full',
  },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
